package com.yzc.mihuyou.controller;


import com.yzc.mihuyou.service.LefImgService;
import com.yzc.mihuyou.vo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 提瓦特地图 前端控制器
 * </p>
 *
 * @author yzc
 * @since 2022-05-15
 */
@RestController
@RequestMapping("/mihuyou/lef-img")
public class LefImgController {
    @Autowired
    LefImgService lefImgService;

    @PostMapping("tiezi")
    public  String text(@RequestPart("photos") MultipartFile photos){
        lefImgService.importProfession(photos);
        return "";
    }


    @GetMapping("lewu")
    public JsonResult lewu(){
        return new JsonResult(200,"查询成功",lefImgService.lewu());
    }
}
